const routers = [
    // 默认路由
    {
        path: '/',
        meta: {
            title: ''
        },
        component: (resolve) => require(['./views/login.vue'], resolve)
    },
    //登陆路由
    {
        path: '/login',
        meta: {
            title: ''
        },
        component: (resolve) => require(['./views/login.vue'], resolve)
    },
    //主页路由
    {
        path: '/index',
        meta: {
            title: ''
        },
        component: (resolve) => require(['./views/index.vue'], resolve),
        children: [
            { path: '',
            component: resolve => require(['./views/home.vue'], resolve)},
            //首页路由
            { path: '/home',
                component: resolve => require(['./views/home.vue'], resolve)},
            //业务中心路由
            { path: '/business',
                component: resolve => require(['./views/business.vue'], resolve),
                children: [
                    { path: '',
                        component: resolve => require(['./views/business/flpt.vue'], resolve)},
                    { path: '/business/flpt',
                        component: resolve => require(['./views/business/flpt.vue'], resolve)},
                    { path: '/business/cylz',
                        component: resolve => require(['./views/business/cylz.vue'], resolve)},
                    { path: '/business/ddcx',
                        component: resolve => require(['./views/business/ddcx.vue'], resolve)},
                    { path: '/business/ddth',
                        component: resolve => require(['./views/business/ddth.vue'], resolve)},
                    { path: '/business/ddtz',
                        component: resolve => require(['./views/business/ddtz.vue'], resolve)},
                    { path: '/business/hxjg',
                        component: resolve => require(['./views/business/hxjg.vue'], resolve)},
                    { path: '/business/syfk',
                        component: resolve => require(['./views/business/syfk.vue'], resolve)},
                    { path: '/business/tjsc',
                        component: resolve => require(['./views/business/tjsc.vue'], resolve)}
                ]
            },
            //物流中心路由
            { path: '/logistics',
                component: resolve => require(['./views/logistics.vue'], resolve),
                children: [
                    { path: '',
                        component: resolve => require(['./views/logistics/logistic.vue'], resolve)},
                    { path: '/logistics/logistic',
                        component: resolve => require(['./views/logistics/logistic.vue'], resolve)},
                    { path: '/logistics/order',
                        component: resolve => require(['./views/logistics/order.vue'], resolve)},
                    { path: '/logistics/billlistPage',
                        component: resolve => require(['./views/logistics/billlistPage.vue'], resolve)},
                    { path: '/logistics/declForm',
                        component: resolve => require(['./views/logistics/declForm.vue'], resolve)},
                    { path: '/logistics/cusArchive',
                        component: resolve => require(['./views/logistics/cusArchive.vue'], resolve)},
                    { path: '/logistics/systemContrast',
                        component: resolve => require(['./views/logistics/systemContrast.vue'], resolve)},
                    { path: '/logistics/uploadresult',
                        component: resolve => require(['./views/logistics/uploadresult.vue'], resolve)},
                    { path: '/logistics/invoice',
                        component: resolve => require(['./views/logistics/invoice.vue'], resolve)}
                ]
            },
            //协作中心路由
            { path: '/collaboration',
                component: resolve => require(['./views/collaboration.vue'], resolve),
                children: [
                    { path: '',
                        component: resolve => require(['./views/collaboration/toDDLB.vue'], resolve)},
                    { path: '/collaboration/toDDLB',
                        component: resolve => require(['./views/collaboration/toDDLB.vue'], resolve)},
                    { path: '/collaboration/toDDGX',
                        component: resolve => require(['./views/collaboration/toDDGX.vue'], resolve)},
                    { path: '/collaboration/toNews',
                        component: resolve => require(['./views/collaboration/toNews.vue'], resolve)},
                    { path: '/collaboration/problem',
                        component: resolve => require(['./views/collaboration/problem.vue'], resolve)},
                    { path: '/collaboration/picOrder',
                        component: resolve => require(['./views/collaboration/picOrder.vue'], resolve)},
                    { path: '/collaboration/question',
                        component: resolve => require(['./views/collaboration/question.vue'], resolve)},
                    { path: '/collaboration/toComplain',
                        component: resolve => require(['./views/collaboration/toComplain.vue'], resolve)},
                    { path: '/collaboration/testIndex',
                        component: resolve => require(['./views/collaboration/testIndex.vue'], resolve)}
                ]
            },
            //系统设置路由
            { path: '/system',
                component: resolve => require(['./views/system.vue'], resolve),
                children: [
                    { path: '',
                        component: resolve => require(['./views/system/rolefunction.vue'], resolve)},
                    { path: '/system/rolefunction',
                        component: resolve => require(['./views/system/rolefunction.vue'], resolve)},
                    { path: '/system/module',
                        component: resolve => require(['./views/system/module.vue'], resolve)}
                ]
            },
            //用户管理路由
            { path: '/people',
                component: resolve => require(['./views/people.vue'], resolve),
                children: [
                    { path: '',
                        component: resolve => require(['./views/people/uesrListPage.vue'], resolve)},
                    { path: '/people/uesrListPage',
                        component: resolve => require(['./views/people/uesrListPage.vue'], resolve)},
                    { path: '/people/ltdnListPage',
                        component: resolve => require(['./views/people/ltdnListPage.vue'], resolve)}
                ]
            },
            //参数管理路由
            { path: '/parameter',
                component: resolve => require(['./views/parameter.vue'], resolve)}
        ]
    }


];
export default routers;